package com.ruoyi.xsp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 第三方登录对象 xsp_user_auth
 * 
 * @author zhiminhu
 * @date 2021-01-22
 */
public class XspUserAuth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 系统唯一ID */
    private Long userCode;

    /** 用户来源 */
    @Excel(name = "用户来源")
    private String source;

    /** 用户的OpenID */
    @Excel(name = "用户的OpenID")
    private String openId;

    /** 用户的Id */
    @Excel(name = "用户的Id")
    private Long userId;

    /** 用户的UnionId */
    @Excel(name = "用户的UnionId")
    private String unionId;

    /** 删除标志 */
    private String delFlag;

    /** 备注 */
    private String remarks;

    public void setUserCode(Long userCode)
    {
        this.userCode = userCode;
    }

    public Long getUserCode()
    {
        return userCode;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUnionId(String unionId) 
    {
        this.unionId = unionId;
    }

    public String getUnionId() 
    {
        return unionId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userCode", getUserCode())
            .append("source", getSource())
            .append("openId", getOpenId())
            .append("userId", getUserId())
            .append("unionId", getUnionId())
            .append("delFlag", getDelFlag())
            .append("remarks", getRemarks())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
